﻿
namespace SharpDepend
{
    public interface ISocketClient
    {
        string IP { get; }

        void Connect(string ip, int port);

        void Write(byte[] data, int offset, int length);

        int GetAvailable();

        int ReadByte();

        void Read(byte[] data, int offset, int length);

        void Close();

        bool IsConnected { get; }
    }

    public interface ISocketClientManager
    {
        ISocketClient CreateClient();
    }
}
